package extend03;

//4.java中规定最顶层的父类（祖宗）是Object类
class A2 {
    public void methodA() {

    }
}

class B2 extends A2 {
    public void methodB() {

    }
}
public class Demo04 {
    public static void main(String[] args) {
        System.out.println(B2.class.getSuperclass());
        System.out.println(A2.class.getSuperclass());
    }
}
